package com.dkd.manage.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 合作商管理对象 tb_partner
 *
 * @author yjx
 * @date 2025-07-12
 */
@Data
public class Partner extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 合作商ID
     */
    private Long id;

    /**
     * 合作商名称
     */
    @Excel(name = "合作商名称")
    private String partnerName;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    private String contactPerson;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String phone;

    /**
     * 分成比例（百分比）
     */
    @Excel(name = "分成比例", readConverterExp = "百=分比")
    private Long profitRatio;

    /**
     * 账号
     */
    @Excel(name = "账号")
    private String account;

    /**
     * 密码
     */
    private String password;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("partnerName", getPartnerName())
                .append("contactPerson", getContactPerson())
                .append("phone", getPhone())
                .append("profitRatio", getProfitRatio())
                .append("account", getAccount())
                .append("password", getPassword())
                .append("isDeleted", getIsDeleted())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}
